<?xml version="1.0" ?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:lzc="http://schemas.icitadel.com/Lazarus/Compiled.xsd" version="1.0">

	<xsl:output method="text"/>

	<xsl:include href="../../common.xsl" />
	<xsl:include href="../../convert.xsl" />

   <xsl:template match="lzc:project">/*
* Copyright 2012 Google Inc. All Rights Reserved.
*
* __author__ = joemu@google.com (Joe Allan Muharsky)
*
* Creates the tables and relationships for the <xsl:value-of select="@name" /> database.
*
*/

# Table Deletion
<xsl:for-each select="lzc:tables/lzc:table[ count( lzc:fields/lzc:field ) &gt; 0 ]">
	<xsl:variable name="TABLE_NAME">
		<xsl:value-of select="@alias" />
	</xsl:variable>
DROP TABLE <xsl:value-of select="$TABLE_NAME" />;
</xsl:for-each>
   </xsl:template>

</xsl:stylesheet>